﻿using System;
using Orchard.ContentManagement.Records;
using Orchard.Environment.Extensions;

namespace FruitCake.ContactPage.Models
{
    public enum RequestState
    {
        Pending = 10,
        TakenOver,
        Rejected,
        Archived,
        Spam
    }

    [OrchardFeature("FruitCake.ContactPage")]
    public class ContactRequestRecord  
    {
        public virtual int Id { get; set; }
        public virtual DateTime RequestDate { get; set; }
        public virtual string ContactPage { get; set; }

        public virtual String Name { get; set; }
        public virtual String Mail { get; set; }
        public virtual String Reason { get; set; }
        public virtual String Subject { get; set; }
        public virtual String Text { get; set; }

        public virtual RequestState StateValue { get; set; }
        public virtual String StateUser { get; set; }
        public virtual DateTime StateDate { get; set; }
    }
}